package com.waijiaojun.tpo.vo;

import com.waijiaojun.tpo.utils.Util;

/**
 * Created by Peter on 2018/1/31.
 */
public class UserCategoryVo {
    private Long id;
    private String name_cn;
    private String name_en;
    private String description;
    private String openid;
    private Long scenario_size;// 小关卡数
    private Long score;// 3分制得分（该分类下所有文章的平均分，然后换算成3分制）
    private Double d_score;//小数得分，该分类下所有文章的平均分
    private Long progress;//用户完成的小关卡数

    public Double getD_score() {
        return d_score;
    }

    public void setD_score(Double d_score) {
        this.d_score = d_score;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName_cn() {
        return name_cn;
    }

    public void setName_cn(String name_cn) {
        this.name_cn = name_cn;
    }

    public String getName_en() {
        return name_en;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getScenario_size() {
        return scenario_size;
    }

    public void setScenario_size(Long scenario_size) {
        this.scenario_size = scenario_size;
    }

    public Long getScore() {
        return Util.trisection(d_score);
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public Long getProgress() {
        return progress;
    }

    public void setProgress(Long progress) {
        this.progress = progress;
    }
}
